/*
 * File:   superpeer.h
 * Author: alex
 *
 * Created on April 7, 2009, 3:04 PM
 */

#ifndef _SUPERPEER_H
#define	_SUPERPEER_H

#ifdef	__cplusplus

extern "C" {
#endif
#include <stdio.h>
#include <stdlib.h>
#include <glib-2.0/glib.h>
#include "structures.h"
extern GList * listaPeer;
extern GList * listaChunk;
int compareID(gconstpointer a, gconstpointer b);
struct elemPoss * insElemPoss(struct chunkPoss * chk, struct peer * p);
int addPeerWithChunks(struct peer * p, int nChunk,struct chunkLight * cl);
int removePeer(struct peerLight *pl);
void printPeerList();
void printChunkPossList();
void printPossList(struct chunkPoss *chk);

#ifdef	__cplusplus
}
#endif

#endif	/* _SUPERPEER_H */

